package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangweikang on 19/7/4.
 */
@Entity
@Data
@Table(name = "notice")
@ApiModel(value = "NoticeEntity", description = "通知")
@DynamicInsert
@DynamicUpdate
public class NoticeEntity {

    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "商品图")
    private String image;

    @ApiModelProperty(value = "名字")
    private String name;
}
